package lt.hsu.web;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.io.Serializable;

@Data
public class QueryPage<T> implements Serializable {

    private int page = 1;//当前页

    private int size = 10;//每页显示条数


    public IPage<T> toPage(){
        return Page.of(page,size);
    }
}
